﻿@inherits UmbracoTemplatePage
@{
    Layout = "Documentation.cshtml";
    Markdown md = new Markdown();

    IEnumerable<IPublishedContent> recommendDucments = null, generalDucuments = null;
    if (Model.Content.HasValue("recommendDocuments"))
    {
        recommendDucments = Model.Content.GetPropertyValue<IEnumerable<IPublishedContent>>("recommendDocuments");
    }
    if (Model.Content.HasValue("generalDocuments"))
    {
        generalDucuments = Model.Content.GetPropertyValue<IEnumerable<IPublishedContent>>("generalDocuments");
    }
}
<h1 class="text-center anchorjs-heading">@Model.Content.GetPropertyValue("displayTitle")</h1>


<div class="row list-icons">
    @if (recommendDucments != null && recommendDucments.Count() > 0)
    {
        @Html.Partial("RenderDocumentationRecommend", recommendDucments)
    }
</div>
<br><br>
<hr>
<br><br>
<div class="row list-general">
    @if (generalDucuments != null && generalDucuments.Count() > 0)
    {
        foreach (IPublishedContent item in generalDucuments)
        {
            <h3><a href="@item.Url">@item.Name</a></h3>
            @MvcHtmlString.Create(md.Transform(item.GetPropertyValue<string>("documentIntroduce")))
        }
    }
</div>